//
//  protocols.c
//  VideoParse
//
//  Created by xiaerfei on 2020/1/12.
//  Copyright © 2020 erfeixia. All rights reserved.
//

#include <string.h>
#include "protocol_list.c"

const URLProtocol *ffurl_get_protocols(const char *name) {
    
    int i;

    /* find the protocol that corresponds to prev */
    for (i = 0; url_protocols[i]; i++) {
        if (!strcmp(url_protocols[i]->name, name)) {
            return url_protocols[i];
        }
    }
    
    return NULL;
}
